package com.itheima.a05ExtendsDemo2;

public class Test {
    public static void main(String[] args) {
        Zi zi = new Zi();
        zi.ziShow();
    }
}

class Ye{
    String name = "Ye";
}
class Fu extends Ye {
    String name = "Fu";
}

class Zi extends Fu{
    String name = "Zi";

    public void ziShow(){
        String name = "Zishow";
        System.out.println(name);// Zishow
        System.out.println(this.name);// Zi
        System.out.println(super.name);// Fu
        // Ye无法被调用
    }
}
